@echo off
for %%I in ("%CD%") do set "PARENT_DIR=%%~dpI"
set "PARENT_DIR=%PARENT_DIR:~0,-1%"
echo parent path: %PARENT_DIR%
echo current path: %cd%

echo copy ruoyi-radius
if not exist "%CD%\server\jar\" mkdir "%CD%\server\jar\"
copy %PARENT_DIR%\ruoyi-admin\target\ruoyi-radius.jar %CD%\server\jar\ /y

echo copy mysql
if not exist "%CD%\mysql\db\" mkdir "%CD%\mysql\db"
xcopy %PARENT_DIR%\sql\ruoyiradius-init.sql %CD%\mysql\db\ /e /y

echo File copied successfully.

